package lt.web.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lt.web.mapper.DataDictionaryMapper;
import lt.web.mapper.DevUserMapper;
import lt.web.pojo.DataDictionary;
import lt.web.service.DataDictionaryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DataDictionaryServiceImpl extends ServiceImpl<DataDictionaryMapper, DataDictionary> implements DataDictionaryService {

    @Autowired
    DataDictionaryMapper dataDictionaryMapper;
    @Override
    public List<DataDictionary> getDataDictionaryList(String appFlatform) {
        QueryWrapper queryWrapper = new QueryWrapper();
        queryWrapper.eq("typeCode", appFlatform);
        return dataDictionaryMapper.selectList(queryWrapper);
    }
}
